-- GENERATED SPELL FOR [Urga'zz] --


function spell0_18976(pUnit, Event) --@Drill,n/a--
pUnit:FullCastSpellOnTarget(32004,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18976', 560, 1)
end

function spell1_18976(pUnit, Event) --@Power Burn,n/a--
pUnit:FullCastSpellOnTarget(32003,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18976', 561, 1)
end

function spell2_18976(pUnit, Event) --@Throw Proximity Bomb,n/a--
pUnit:FullCastSpellOnTarget(34095,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18976', 30000, 1)
end

function Sorts_18976(pUnit, Event)
local choix_sorts_18976 = math.random(0, 2)
if choix_sorts_18976 == 0 then
pUnit:RegisterEvent('spell0_18976', 1, 1)
end
if choix_sorts_18976 == 1 then
pUnit:RegisterEvent('spell1_18976', 1, 1)
end
if choix_sorts_18976 == 2 then
pUnit:RegisterEvent('spell2_18976', 1, 1)
end
end

function mob18976_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18976', math.random(1500, 3000), 1)
end

function mob18976_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18976_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18976_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18976, 1, 'mob18976_Action')
RegisterUnitEvent(18976, 2, 'mob18976_Leave')
RegisterUnitEvent(18976, 3, 'mob18976_Kill')
RegisterUnitEvent(18976, 4, 'mob18976_Die')
